package com.zhongchaowuye.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.github.pagehelper.PageHelper;
import com.zhongchaowuye.dao.B_TZhDao;
import com.zhongchaowuye.pojo.B_TZh;
import com.zhongchaowuye.service.B_TZhService;

@Transactional
@Service("b_TZhService")
public class B_TZhServiceImpl implements B_TZhService
{
	@Resource
	B_TZhDao b_TZhDao;
	
	@Override
	public int insertB_TZh(B_TZh b_TZh) {
		// TODO Auto-generated method stub
		return b_TZhDao.insertB_TZh(b_TZh);
	}

	@Override
	public int updateB_TZh(B_TZh b_TZh) {
		// TODO Auto-generated method stub
		return b_TZhDao.updateB_TZh(b_TZh);
	}

	@Override
	public int delB_TZh(B_TZh b_TZh) {
		// TODO Auto-generated method stub
		return b_TZhDao.delB_TZh(b_TZh);
	}
	
	@Override
	public B_TZh getB_TZh(B_TZh b_TZh) {
		// TODO Auto-generated method stub
		return b_TZhDao.getB_TZh(b_TZh);
	}
	
	@Override
	public List<Map<String, Object>> getB_TZhList(B_TZh b_TZh) {
		// TODO Auto-generated method stub
		PageHelper.startPage(b_TZh.getPageIndex(),b_TZh.getPageSize(),true);
		return b_TZhDao.getB_TZhList(b_TZh);
	}

	@Override
	public List<Map<String, Object>> getTjxx(B_TZh b_TZh) {
		// TODO Auto-generated method stub
		return b_TZhDao.getTjxx(b_TZh);
	}

	@Override
	public List<Map<String, Object>> getDjxx(B_TZh b_TZh) {
		// TODO Auto-generated method stub
		return b_TZhDao.getDjxx(b_TZh);
	}

	@Override
	public List<Map<String, Object>> getHzxx_meiri_leibie(B_TZh b_TZh) {
		// TODO Auto-generated method stub
		return b_TZhDao.getHzxx_meiri_leibie(b_TZh);
	}

	@Override
	public List<Map<String, Object>> getGhjg_tzh_gysh(B_TZh b_TZh) {
		// TODO Auto-generated method stub
		return b_TZhDao.getGhjg_tzh_gysh(b_TZh);
	}

	@Override
	public List<Map<String, Object>> getYltj(B_TZh b_TZh) {
		// TODO Auto-generated method stub
		return b_TZhDao.getYltj(b_TZh);
	}
}
